Skip to main content

Copy File

AutomatR.DefaultActivities.FileAndFolder.CopyFile

The "Copy File" activity in AutomatR allows you to copy a file from one specified location to another. This activity is designed to streamline the file copying process, enhancing automation workflows that involve file management.

Properties

NameDescription
Input
Destination FolderSpecifies the destination folder path where the file should be copied. Enter the full path of the destination folder on your local drive, or use the browse option. Example: "D:\Destination\". String variables containing the destination folder path.
OverwriteWhen selected, overwrites the files in the destination folder with the file that has to be copied. Boolean variables or arguments to control the overwrite behavior.
Source PathSpecifies the source path of the file to be copied. Enter the full path of the file on your local drive, or use the browse option. Example: "D:\CopyingFiles\copyfile.txt". String variables containing the source path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Copy File" activity. This can be useful for handling synchronization issues. Integer variables or arguments containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Copy File" activity onto the workflow.
  2. Configure the properties by specifying the source path, destination folder, and optionally, set the overwrite behavior.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to copy the specified file to the destination folder.

Example: Consider an example where the "Copy File" activity is used to copy a file named "copyfile.txt" from one folder to another:

Copy File:
Display Name: "Copy Document File"
Source Path: "D:\CopyingFiles\copyfile.txt"
Destination Folder: "D:\Destination\"
Overwrite: True

In this example, the activity copies the "copyfile.txt" from the "CopyingFiles" directory to the "Destination" directory on the local drive. The overwrite option is set to true, indicating that existing files in the destination folder should be overwritten if they have the same name.